package cn.yougou.config;

import java.util.Map;

/**
 * 常量
 *
 * @author kups
 * @since 2020-12-3
 */

public class Constants {
    //默认头像url
    public static final String USER_IMAGE_URL="aa";

    //redis 存商品详细信息 byId
    public static final String GOODS_BYID="TCarp:Goods:particulars:";
    //redis_time
    public static final int GOODS_BYID_TIME_OUT=60 *60 * 2;//2h

    //生成的键名前缀文件名
    public static final String USER_TOKEN = "TCarp:token:user:";
    //用户token过期时间是2小时
    public static final int TOKEN_OUT = 60 * 60 * 1;

    //redis 发送验证码后保存的信息
    public static final String LOGIN_PHONE="TCarp:User:PhoneCode:";
    //登录时传验证码过期时间5分钟
    public static final int LOGIN_TOKEN_OUT = 60;

    //RSA 钥匙对
    public  static Map<String, String> RSA_KEY_MAP=RSACoder.getRSAKeyMAp();

    // 商品推荐每页数量
    public static final int GOODS_RECOMMEND_PAGE=3;

    //MinIo
    public   static  final  String MINIO_RUL="http://121.36.30.36:9000";





//    //邮件发送结果
//    public static final String REGISTER_RESULT="PumpkinBlog:token:register:result:";//result
//    //验证码redis
//    public static final String REGISTER_VERIFY="PumpkinBlog:token:register:verify:";//verify
//
//    //验证码过期时间 10分钟
//    public static  final  int USER_VERIFY_OUT=60*10;
//    //验证码发送结果保存时间 2h
//    public static  final  int RESULT_TIME_OUT=60*60*2;
//
//    // authorization注册授权码
//    public static  final  String AUTHORIZATION="PumpkinBlog:token:register:authorization:";
//    //授权码时效  20分钟
//    public static  final int  AUTHORIZATION_TIME_OUT=60*20;

}
